import request from '@/utils/request'

// 查询库房部门对照列表
export function listDeptstoreroom(query) {
  return request({
    url: '/dept/deptstoreroom/list',
    method: 'get',
    params: query
  })
}

// 查询库房部门对照详细
export function getDeptstoreroom(id) {
  return request({
    url: '/dept/deptstoreroom/' + id,
    method: 'get'
  })
}

// 新增库房部门对照
export function addDeptstoreroom(data) {
  return request({
    url: '/dept/deptstoreroom',
    method: 'post',
    data: data
  })
}

// 修改库房部门对照
export function updateDeptstoreroom(data) {
  return request({
    url: '/dept/deptstoreroom',
    method: 'put',
    data: data
  })
}

// 删除库房部门对照
export function delDeptstoreroom(id) {
  return request({
    url: '/dept/deptstoreroom/' + id,
    method: 'delete'
  })
}

// 导出库房部门对照
export function exportDeptstoreroom(query) {
  return request({
    url: '/dept/deptstoreroom/export',
    method: 'get',
    params: query
  })
}